export const platform = __UNI_PLATFORM__;
export const isH5 = __UNI_PLATFORM__ === 'h5';
export const isApp = __UNI_PLATFORM__ === 'app';
export const isMp = __UNI_PLATFORM__.startsWith('mp-');
export const isWeiXin = __UNI_PLATFORM__ === 'mp-weixin';
export const isAlipay = __UNI_PLATFORM__ === 'mp-alipay';
export const isProd = ['prod', 'production'].includes(
  import.meta.env.VITE_USER_NODE_ENV
);
const PLATFORM = {
  platform,
  isH5,
  isApp,
  isMp,
  isAlipay,
  isWeiXin
};
export default PLATFORM;
